package cn.yangliu.operation.tools;

/**
 * 作者 杨柳
 * 创建时间 2017-08-28 01:05
 */
public final class OperationUtils {

    public static Class<?> ENTITY_CLASS;

    private static final ThreadLocal<String> OPERATION_THREAD_LOCAL = new ThreadLocal<>();

    public static final void setValue(String value){
        OPERATION_THREAD_LOCAL.set(value);
    }

    public static final String getValue(){
        String value = OPERATION_THREAD_LOCAL.get();
        OPERATION_THREAD_LOCAL.remove();
        return value;
    }
}
